package com.doit.学;

import javax.lang.model.element.VariableElement;
import java.io.*;

public class demo04 {
    public static void main(String[] args)  throws IOException  {
        BufferedReader br = new BufferedReader(new FileReader("D:\\work\\abc\\1.txt"));
        String line =null ;
        while ((line=br.readLine())!=null){
            System.out.println(line);
        }
        br.close();

        BufferedWriter bw =new BufferedWriter(new FileWriter("d:\\work\\abc\\3.txt"));
        bw.write("我嫩爹");
        bw.newLine(); //写出换行
        bw.write("sf");
        bw.close();
    }
}
